package com.inspur.cloud.entity.dataspace.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "Yarn资源返回对象")
public class YarnVO {
    @ApiModelProperty(value = "资源ID名，查询或搜索用", example = "0")
    private Integer resourceId;
    @ApiModelProperty(value = "父资源ID，创建的时候需要，查询的时候也会返回")
    private Integer parentId;
    @ApiModelProperty(value = "队列名字")
    private String queueName;
    @ApiModelProperty(value = "队列占比")
    private Float ratio;
    @ApiModelProperty(value = "租户列表，返回时使用")
    private List<String> tenantList;
    @ApiModelProperty(value = "用户列表，返回时使用")
    private List<String> userList;
    @ApiModelProperty(value = "租户ID列表,传递参数时使用此数据接口，不要直接传用户名")
    private List<Integer> tenantIdList;
    @ApiModelProperty(value = "用户ID列表,传递参数时使用此数据接口，不要直接传用户名")
    private List<Integer> userIdList;
    @ApiModelProperty(value = "资源类型,1公共2私有3共享", required = true)
    private Integer type;
    @ApiModelProperty(value = "权限字段，以|隔开，比如 read|write，需要是小写")
    private String powerList;

    private Integer level;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updDate;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date insDate;
    @ApiModelProperty(value = "创建者")
    private String creator;
}
